<?php
template::header();

echo form_open('Bacon/login');
?>

<h3>Efetuar Login</h3>

<?php
if (!isset($_SESSION))
    session_start();
if (isset($_SESSION['erro'])) {
    echo $_SESSION['erro'];
}
?>

<table align="center">
    <tr>
        <td>Usuário <input name="login" /></td>
    </tr>
    <tr>
        <td>Senha <input name="senha" /></td>
    </tr>
</table>
<input type="submit" value="Entrar" />


<?php
echo form_close();
template::footer();
?>